/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.distribution.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.vo.SysUserVO;
import com.yami.shop.distribution.common.vo.DistributionUserVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yami
 */
@Data
@TableName( "tz_distribution_auditing")
public class DistributionAuditing implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("分销员申请表id")
    private Long auditingId;

    @ApiModelProperty("店铺Id")
    private Long shopId;

    @ApiModelProperty("邀请人id")
    private Long parentDistributionUserId;

    @ApiModelProperty("申请人id")
    private Long distributionUserId;

    @ApiModelProperty("申请时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditingTime;

    @ApiModelProperty("不通过原因")
    private Integer reason;

    @ApiModelProperty("审核状态：0 未审核 1已通过 -1未通过")
    private Integer state;

    @ApiModelProperty("操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("操作人")
    private Long modifier;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("关联邀请人")
    @TableField(exist = false)
    private DistributionUserVO parentDistributionUser;

    @ApiModelProperty("关联用户")
    @TableField(exist = false)
    private DistributionUser distributionUser;

    @ApiModelProperty("关联操作人")
    @TableField(exist = false)
    private SysUserVO sysUser;
}
